package com.dave.gd.sysmgr.domain.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;



@Table(name = "el_teacher")
public class Teacher  implements Serializable{//extends AbstractBaseEntity<Integer>{


    /**
     * .
     */
    private static final long serialVersionUID = 4942594795492836190L;

    /**
     * 
     */
    @Id
    @Column(name = "id")
    private Integer id=0;

    /**
     * 用户id（是老师，先得成为用户）
     */
    @Column(name = "uid")
    private int uid;

    /**
     * 封面
     */
    @Column(name = "face")
    private String face;

    /**
     * 真实名字
     */
    @Column(name = "name")
    private String name;

    /**
     * 分类
     */
    @Column(name = "categoryId")
    private int categoryId;

    /**
     * 简介
     */
    @Column(name = "dsc")
    private String dsc;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getFace() {
        return face;
    }

    public void setFace(String face) {
        this.face = face;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public String getDsc() {
        return dsc;
    }

    public void setDsc(String dsc) {
        this.dsc = dsc;
    }


    

   /* @Override
    public Integer getId() {
        return this.id;
    }

    @Override
    public void setId(Integer id) {
        this.id=id;
    }
    public static ITeacherRepository repository() {
        return (ITeacherRepository) RepositoryRegister.getInstance()
                .getRepository(TeacherEntity.class);
    }
*/
}
